from create_app import creat_flask
from view import one
from flask_restful import Api,Resource,request
from flask import jsonify

app = creat_flask()
api = Api(app)

# class IndexResource(Resource):
#     def get(self):
#         return jsonify('哈哈哈')

# api.add_resource(IndexResource,'/index',endpoint='index')

app.register_blueprint(one.one)

if __name__ == '__main__':
    print(app.url_map)
    app.config['JSON_AS_ASCII'] = False
    app.run(host='0.0.0.0',port=9376)